import { lazy } from 'react'
import { Navigate } from 'react-router-dom'

//审批管理
var ApprovalFirst = lazy(() => import('../views/zz/Approval/ApprovalFirst'))
// 审批表单
var ApprovalSecond = lazy(() => import('../views/zz/Approval/ApprovalSecond'))


var ApprovalSecondAdd = lazy(() => import('../views/zz/Approval/ApprovalSecondAdd'))
// 审批
var Approval = lazy(() => import('../views/zz/Approval/Approval'))


let zzConfigt = [
    {
        path: '/index/Approval',
        element: <Approval />,
        children: [
            {
                path: '/index/Approval/approvalFirst',
                element: <ApprovalFirst />,
            },
            {
                path: '/index/Approval/approvalSecond',
                element: <ApprovalSecond />,
            },
            {
                path: '/index/Approval/approvalSecondAdd',
                element: <ApprovalSecondAdd />,
            },
            {
                path: '/index/Approval',
                element: <Navigate to="/index/Approval/approvalFirst" />
            },
        ]
    },

]

export default zzConfigt